package at.fhj.itm11.forum.api;

import javax.ejb.Remote;
import javax.ejb.Stateless;
import javax.inject.Inject;
import javax.inject.Named;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import at.fhj.itm11.forum.service.TestHelperService;

@Stateless
@Remote(TestHelperService.class)
public class TestHelperApi implements TestHelperService {

	private final Logger logger = LoggerFactory.getLogger(getClass());

	@Inject
	@Named("testHelperServiceImpl")
	private TestHelperService service;

	@Override
	public void cleanDB() {
		logger.info("cleanDB called via TestApi");
		service.cleanDB();
	}

	@Override
	public void createDemoData() {
		logger.info("createDemoData called via TestApi");
		service.createDemoData();
	}

}
